package compiler;

import java.util.ArrayList;

import pointAndLine.Point;
import returnTypes.Status;

public class CreatePoint implements Create{
	public Object ExecutCommand(ArrayList<String> toDo)
	{
		
		String name=toDo.get(0);
		String coordinates=toDo.get(2);
		Point returnPoint=null;
		returnPoint=new Point(coordinates);
		returnPoint.setPointName(name);
		returnPoint.setState(Status.FREE);
		return returnPoint;
	}
}
